package com.example.myapplicationndk.retrofit;


import android.accounts.Account;

import com.example.myapplicationndk.bean.NaviJsonBean;
import com.example.myapplicationndk.bean.PagingBean;

import java.util.HashMap;

import io.reactivex.Flowable;
import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface Api {

    public static String BASEURL = "https://wanandroid.com/";

    /**
     * 导航数据
     */
    @GET("navi/json")
    Observable<NaviJsonBean> getNaviJson();

    //get请求
    @GET("wxarticle/list/405/1/json?k=Java")
    Call<JsonRootBean> getTest();

    @GET("wxarticle/chapters/json")
    Call<JsonBean> getData();


    @GET("/api/4/news/before/{date}")
    Call<JsonBean> getTheDaily(@Path("date") String date);

    @GET("wxarticle/chapters/json")
    Observable<JsonBean> getRxData();

    @GET("wxarticle/chapters/json")
    retrofit2.Call<JsonBean> getRxDatas();


    @POST("account/login")
    retrofit2.Call<HashMap<String, Object>> login(@Body Account account);


    public static String BaseUrl1 = "https://api.github.com";

    @GET("/wenda/comments/14500/json")
    Observable<PagingBean> getPaging();
//
//    @GET("article/top/json")
//    Observable<Articals> getArticals();

}